package com.axonactive;

import java.util.ArrayList;
import java.util.List;

import javax.ejb.Stateless;
import javax.inject.Inject;
@Stateless
public class BookService {
	@Inject
	BookDao bookDao;
	
	List<String> books;
	public List<Book> getBooks()
	{
//		if(books==null)
//		{
//			books= new ArrayList<String>();
//		}
//		return books;
		return bookDao.getBooks();
	}
	
	public void saveBook(Book book)
	{
		bookDao.saveBooks(book);
	}
}
